package Convertisseur;

import jxl.Sheet;
import jxl.Workbook;

import java.util.ArrayList;
import java.util.HashMap;
//import java.util.Date;
//import java.text.SimpleDateFormat;


public class VariableFlags{
//protected class VariableFlags{
	
	//variable File excel(.xsl)
	protected static Workbook book = null;
	protected static Workbook bookCompare = null;
	protected static Sheet sheet = null;
	protected static Sheet sheetInfluencing = null;
	protected static String ExcleFilePathAndName = "";
	protected static String filePath;
	
	public static String getExcleFilePathAndName() {
		return ExcleFilePathAndName;
	}
	public static void setExcleFilePathAndName(String excleFilePathAndName) {
		ExcleFilePathAndName = excleFilePathAndName;
	}

	
	public static String getFilePath() {
		return filePath;
	}
	public static void setFilePath(String filePath) {
		VariableFlags.filePath = filePath;
	}


	protected static String fileQ_DASName = "";
	
	public static String getFileQ_DASName() {
		return fileQ_DASName;
	}
	public static void setFileQ_DASName(String fileQ_DASName) {
		VariableFlags.fileQ_DASName = fileQ_DASName;
	}

	//Parts Data Flags 
	protected static String site="";
	protected static String N_ligne="";
	protected static String Annee="";
	protected static String critere_name = "";
	//protected static String nom_Essieu = ""; 						//K1001
	protected static String Organe = ""; 						//K1001
	protected static String Diversite = ""; 						//K1005
	protected static String Synoptique_Ligne = ""; 				//K1046
	//protected static String Numero_de_Ligne = "";					//K1091
	protected static String Commentaire_Echantillon_Organe = "Echantillon OK";	//K1900
	
	
	public static String getSite() {
		return site;
	}
	public static void setSite(String site) {
		VariableFlags.site = site;
	}
	public static String getN_ligne() {
		return N_ligne;
	}
	public static void setN_ligne(String n_ligne) {
		N_ligne = n_ligne;
	}
	
	public static String getAnnee() {
		return Annee;
	}
	public static void setAnnee(String annee) {
		Annee = annee;
	}
	public static String getCritere_name() {
		return critere_name;
	}
	public static void setCritere_name(String critere_name) {
		VariableFlags.critere_name = critere_name;
	}
	
	public static String getOrgane() {
		return Organe;
	}
	public static void setOrgane(String organe) {
		Organe = organe;
	}
	public static String getDiversite() {
		return Diversite;
	}
	public static void setDiversite(String diversite) {
		Diversite = diversite;
	}
	public static String getSynoptique_Ligne() {
		return Synoptique_Ligne;
	}
	public static void setSynoptique_Ligne(String synoptique_Ligne) {
		Synoptique_Ligne = synoptique_Ligne;
	}

	public static String getCommentaire_Echantillon_Organe() {
		return Commentaire_Echantillon_Organe;
	}
	public static void setCommentaire_Echantillon_Organe(
			String commentaire_Echantillon_Organe) {
		Commentaire_Echantillon_Organe = commentaire_Echantillon_Organe;
	}

	//Characteristics Data Flags
	//protected static String Coupe = ""; 							//K2001
	protected static String N_cordon = "";
	protected static String nomVue = "";
	protected static String Characteristic_Description = "";		//K2002
	protected static String Description_Coupe = ""; 				//K2003
	protected static String Characteristic_Type = "0";				//K2004
	protected static String TNC_Objectif = "";						//K2005
	protected static String Remarque_sur_Coupe = "200"; 			//K2009
	protected static String Decimal_Places = ""; 					//K2022
	protected static String Lower_Specification_Limit = ""; 		//K2110 LI
	protected static String Upper_Specification_Limit = ""; 		//K2111 LS
	protected static String Lower_Boundary_Type = ""; 				//K2120
	protected static String Upper_Boundary_Type = ""; 				//K2121
	protected static String Unit = "mm"; 							//K2142
	protected static String Adresse_Image_Macrographie = ""; 		//K2243 
	protected static String Type_Machine = ""; 					//K2301 
	protected static String Classe = ""; 							//K2311 
	protected static String Operation_Main = ""; 					//K2312 
	protected static String Error_Message = "Rem coupe "; 					//K2900 
	
		
	public static String getN_cordon() {
		return N_cordon;
	}
	public static void setN_cordon(String n_cordon) {
		N_cordon = n_cordon;
	}
	public static String getNomVue() {
		return nomVue;
	}
	public static void setNomVue(String nomVue) {
		VariableFlags.nomVue = nomVue;
	}
	public static String getCharacteristic_Description() {
		return Characteristic_Description;
	}
	public static void setCharacteristic_Description(
			String characteristic_Description) {
		Characteristic_Description = characteristic_Description;
	}
	public static String getDescription_Coupe() {
		return Description_Coupe;
	}
	public static void setDescription_Coupe(String description_Coupe) {
		Description_Coupe = description_Coupe;
	}
	public static String getCharacteristic_Type() {
		return Characteristic_Type;
	}
	public static void setCharacteristic_Type(String characteristic_Type) {
		Characteristic_Type = characteristic_Type;
	}
	public static String getTNC_Objectif() {
		return TNC_Objectif;
	}
	public static void setTNC_Objectif(String tNC_Objectif) {
		TNC_Objectif = tNC_Objectif;
	}
	public static String getRemarque_sur_Coupe() {
		return Remarque_sur_Coupe;
	}
	public static void setRemarque_sur_Coupe(String remarque_sur_Coupe) {
		Remarque_sur_Coupe = remarque_sur_Coupe;
	}
	public static String getDecimal_Places() {
		return Decimal_Places;
	}
	public static void setDecimal_Places(String decimal_Places) {
		Decimal_Places = decimal_Places;
	}
	public static String getLower_Specification_Limit() {
		return Lower_Specification_Limit;
	}
	public static void setLower_Specification_Limit(String lower_Specification_Limit) {
		Lower_Specification_Limit = lower_Specification_Limit;
	}
	public static String getUpper_Specification_Limit() {
		return Upper_Specification_Limit;
	}
	public static void setUpper_Specification_Limit(String upper_Specification_Limit) {
		Upper_Specification_Limit = upper_Specification_Limit;
	}
	public static String getLower_Boundary_Type() {
		return Lower_Boundary_Type;
	}
	public static void setLower_Boundary_Type(String lower_Boundary_Type) {
		Lower_Boundary_Type = lower_Boundary_Type;
	}
	public static String getUpper_Boundary_Type() {
		return Upper_Boundary_Type;
	}
	public static void setUpper_Boundary_Type(String upper_Boundary_Type) {
		Upper_Boundary_Type = upper_Boundary_Type;
	}
	public static String getUnit() {
		return Unit;
	}
	public static void setUnit(String unit) {
		Unit = unit;
	}
	public static String getAdresse_Image_Macrographie() {
		return Adresse_Image_Macrographie;
	}
	public static void setAdresse_Image_Macrographie(
			String adresse_Image_Macrographie) {
		Adresse_Image_Macrographie = adresse_Image_Macrographie;
	}
	public static String getType_Machine() {
		return Type_Machine;
	}
	public static void setType_Machine(String type_Machine) {
		Type_Machine = type_Machine;
	}
	public static String getClasse() {
		return Classe;
	}
	public static void setClasse(String classe) {
		Classe = classe;
	}
	public static String getOperation_Main() {
		return Operation_Main;
	}
	public static void setOperation_Main(String operation_Main) {
		Operation_Main = operation_Main;
	}
	public static String getError_Message() {
		return Error_Message;
	}
	public static void setError_Message(String error_Message) {
		Error_Message = error_Message;
	}

	
	
	//variable measure	
	protected static String L1_mesure = "";
	protected static String L2_mesure = "";
	protected static String P1_mesure = "";
	protected static String P2_mesure = "";
	protected static String A_mesure = "";
	protected static String B_mesure = "";
	protected static String valueMeasure = "";  					//K0001
	protected static String Time = "";					//K0004
	protected static String N_serie="";								//K0006  essieuEtChemin=(Path_Coding + Number_Piece)
	protected static String Chemin="";
	protected static String jour_mesure="";
	protected static String operateur="";
	protected static String bras="";
	
	public static String getBras() {
		return bras;
	}
	public static void setBras(String bras) {
		VariableFlags.bras = bras;
	}
	public static String getL1_mesure() {
		return L1_mesure;
	}
	public static void setL1_mesure(String l1_mesure) {
		L1_mesure = l1_mesure;
	}
	public static String getL2_mesure() {
		return L2_mesure;
	}
	public static void setL2_mesure(String l2_mesure) {
		L2_mesure = l2_mesure;
	}
	public static String getP1_mesure() {
		return P1_mesure;
	}
	public static void setP1_mesure(String p1_mesure) {
		P1_mesure = p1_mesure;
	}
	public static String getP2_mesure() {
		return P2_mesure;
	}
	public static void setP2_mesure(String p2_mesure) {
		P2_mesure = p2_mesure;
	}
	public static String getA_mesure() {
		return A_mesure;
	}
	public static void setA_mesure(String a_mesure) {
		A_mesure = a_mesure;
	}
	public static String getB_mesure() {
		return B_mesure;
	}
	public static void setB_mesure(String b_mesure) {
		B_mesure = b_mesure;
	}
	public static String getValueMeasure() {
		return valueMeasure;
	}
	public static void setValueMeasure(String valueMeasure) {
		VariableFlags.valueMeasure = valueMeasure;
	}
	public static String getN_serie() {
		return N_serie;
	}
	public static void setN_serie(String n_serie) {
		N_serie = n_serie;
	}
	public static String getChemin() {
		return Chemin;
	}
	public static void setChemin(String chemin) {
		Chemin = chemin;
	}
	public static String getJour_mesure() {
		return jour_mesure;
	}
	public static void setJour_mesure(String jour_mesure) {
		VariableFlags.jour_mesure = jour_mesure;
	}
	public static String getOperateur() {
		return operateur;
	}
	public static void setOperateur(String operateur) {
		VariableFlags.operateur = operateur;
	}
	

	//--------------------------------------------------------------------------------
	//list coupe : C1M, C2M ...
	protected static ArrayList<String> ListCoupe = new ArrayList<String>();
	
	//--------------------------------------------------------------------------------
	//Production line
	//protected static enum X91_2RD_CodingRule{OP105, OP110, OP120, OP130, OP140, OP160, OP165;};
	//protected static enum X95_CodingRule{OP130, OP140, OP170;};
	protected static HashMap<String, String> OP_Tool_Path = new HashMap<String, String>();

	public static HashMap<String, String> getOP_Tool_Path() {
		return OP_Tool_Path;
	}
	
	protected static HashMap<String, String> OP_Tool_Bras = new HashMap<String, String>();

	public static HashMap<String, String> getOP_Tool_Bras() {
		return OP_Tool_Bras;
	}
	public static void setOP_Tool_Bras(HashMap<String, String> oP_Tool_Bras) {
		OP_Tool_Bras = oP_Tool_Bras;
	}
	
	protected static HashMap<String, String> OP_Tool_EL = new HashMap<String, String>();

	public static HashMap<String, String> getOP_Tool_EL() {
		return OP_Tool_EL;
	}
	public static void setOP_Tool_EL(HashMap<String, String> oP_Tool_EL) {
		OP_Tool_EL = oP_Tool_EL;
	}
	

	
	
	
	
}
